package com.bd.scm.domain.models.approval;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mason
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bd_kq_approve_annotation")
public class BdKqApproveAnnotation extends Model<BdKqApproveAnnotation> {

    private static final long serialVersionUID = 1L;
    @TableId("id")
    private Integer id;
    /**
     * 单据ID
     */
    @TableField("bill_id")
    private Integer billId;
    /**
     * 1：加班单
       2：请假单
       3：补出勤单
     */
    @TableField("bill_type")
    private Integer billType;
    /**
     * 知会人ID
     */
    @TableField("operator_id")
    private Integer operatorId;
    /**
     * 被知会人ID
     */
    @TableField("notify_id")
    private Integer notifyId;
    /**
     * 知会批注内容
     */
    @TableField("notify_content")
    private String notifyContent;
    /**
     * 知会时间
     */
    @TableField("notify_time")
    private Date notifyTime;


    @Override
    protected Serializable pkVal() {
        return this.billId;
    }

}
